/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.spreedairy.portal.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Recommendation}.
 * </p>
 *
 * @author    SpreeDairy
 * @see       Recommendation
 * @generated
 */
public class RecommendationWrapper implements Recommendation,
	ModelWrapper<Recommendation> {
	public RecommendationWrapper(Recommendation recommendation) {
		_recommendation = recommendation;
	}

	public Class<?> getModelClass() {
		return Recommendation.class;
	}

	public String getModelClassName() {
		return Recommendation.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("recommendationId", getRecommendationId());
		attributes.put("itemId", getItemId());
		attributes.put("userId", getUserId());
		attributes.put("groupId", getGroupId());
		attributes.put("companyId", getCompanyId());
		attributes.put("createDate", getCreateDate());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long recommendationId = (Long)attributes.get("recommendationId");

		if (recommendationId != null) {
			setRecommendationId(recommendationId);
		}

		Long itemId = (Long)attributes.get("itemId");

		if (itemId != null) {
			setItemId(itemId);
		}

		Long userId = (Long)attributes.get("userId");

		if (userId != null) {
			setUserId(userId);
		}

		Long groupId = (Long)attributes.get("groupId");

		if (groupId != null) {
			setGroupId(groupId);
		}

		Long companyId = (Long)attributes.get("companyId");

		if (companyId != null) {
			setCompanyId(companyId);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}
	}

	/**
	* Returns the primary key of this recommendation.
	*
	* @return the primary key of this recommendation
	*/
	public long getPrimaryKey() {
		return _recommendation.getPrimaryKey();
	}

	/**
	* Sets the primary key of this recommendation.
	*
	* @param primaryKey the primary key of this recommendation
	*/
	public void setPrimaryKey(long primaryKey) {
		_recommendation.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the recommendation ID of this recommendation.
	*
	* @return the recommendation ID of this recommendation
	*/
	public long getRecommendationId() {
		return _recommendation.getRecommendationId();
	}

	/**
	* Sets the recommendation ID of this recommendation.
	*
	* @param recommendationId the recommendation ID of this recommendation
	*/
	public void setRecommendationId(long recommendationId) {
		_recommendation.setRecommendationId(recommendationId);
	}

	/**
	* Returns the item ID of this recommendation.
	*
	* @return the item ID of this recommendation
	*/
	public long getItemId() {
		return _recommendation.getItemId();
	}

	/**
	* Sets the item ID of this recommendation.
	*
	* @param itemId the item ID of this recommendation
	*/
	public void setItemId(long itemId) {
		_recommendation.setItemId(itemId);
	}

	/**
	* Returns the user ID of this recommendation.
	*
	* @return the user ID of this recommendation
	*/
	public long getUserId() {
		return _recommendation.getUserId();
	}

	/**
	* Sets the user ID of this recommendation.
	*
	* @param userId the user ID of this recommendation
	*/
	public void setUserId(long userId) {
		_recommendation.setUserId(userId);
	}

	/**
	* Returns the user uuid of this recommendation.
	*
	* @return the user uuid of this recommendation
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _recommendation.getUserUuid();
	}

	/**
	* Sets the user uuid of this recommendation.
	*
	* @param userUuid the user uuid of this recommendation
	*/
	public void setUserUuid(java.lang.String userUuid) {
		_recommendation.setUserUuid(userUuid);
	}

	/**
	* Returns the group ID of this recommendation.
	*
	* @return the group ID of this recommendation
	*/
	public long getGroupId() {
		return _recommendation.getGroupId();
	}

	/**
	* Sets the group ID of this recommendation.
	*
	* @param groupId the group ID of this recommendation
	*/
	public void setGroupId(long groupId) {
		_recommendation.setGroupId(groupId);
	}

	/**
	* Returns the company ID of this recommendation.
	*
	* @return the company ID of this recommendation
	*/
	public long getCompanyId() {
		return _recommendation.getCompanyId();
	}

	/**
	* Sets the company ID of this recommendation.
	*
	* @param companyId the company ID of this recommendation
	*/
	public void setCompanyId(long companyId) {
		_recommendation.setCompanyId(companyId);
	}

	/**
	* Returns the create date of this recommendation.
	*
	* @return the create date of this recommendation
	*/
	public java.util.Date getCreateDate() {
		return _recommendation.getCreateDate();
	}

	/**
	* Sets the create date of this recommendation.
	*
	* @param createDate the create date of this recommendation
	*/
	public void setCreateDate(java.util.Date createDate) {
		_recommendation.setCreateDate(createDate);
	}

	public boolean isNew() {
		return _recommendation.isNew();
	}

	public void setNew(boolean n) {
		_recommendation.setNew(n);
	}

	public boolean isCachedModel() {
		return _recommendation.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_recommendation.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _recommendation.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _recommendation.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_recommendation.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _recommendation.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_recommendation.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new RecommendationWrapper((Recommendation)_recommendation.clone());
	}

	public int compareTo(
		com.spreedairy.portal.model.Recommendation recommendation) {
		return _recommendation.compareTo(recommendation);
	}

	@Override
	public int hashCode() {
		return _recommendation.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.spreedairy.portal.model.Recommendation> toCacheModel() {
		return _recommendation.toCacheModel();
	}

	public com.spreedairy.portal.model.Recommendation toEscapedModel() {
		return new RecommendationWrapper(_recommendation.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _recommendation.toString();
	}

	public java.lang.String toXmlString() {
		return _recommendation.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_recommendation.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public Recommendation getWrappedRecommendation() {
		return _recommendation;
	}

	public Recommendation getWrappedModel() {
		return _recommendation;
	}

	public void resetOriginalValues() {
		_recommendation.resetOriginalValues();
	}

	private Recommendation _recommendation;
}